package com.mrbird.demo.controller;

import com.mrbird.demo.config.BlogProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jbx
 * @package_name com.mrbird.demo.controller
 * @create_date 2021/2/20 15:54
 */
@RestController
public class IndexController {
    @Autowired
    private BlogProperties blogProperties;

    @RequestMapping("/index")
    String index() {
        return blogProperties.getName()+"——"+blogProperties.getTitle()+"--"+blogProperties.getWholeTitle();
    }

}
